//
//  TempController.swift
//  Swift微博
//
//  Created by 董筱泽 on 16/10/22.
//  Copyright © 2016年 董筱泽. All rights reserved.
//

import UIKit

class TempController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        setupUI()
    }
    @objc private func pushClick(){
        let tempVc = TempController()
        navigationController?.pushViewController(tempVc, animated: true)
    }
    private func setupUI(){
        view.backgroundColor = UIColor.white
        
        setNav()
    }

    private func setNav(){
        navigationItem.rightBarButtonItem = UIBarButtonItem(setHighlightedImgName: nil, title: "PUSH", target: self, action: #selector(pushClick))
        navigationItem.title = "是\(navigationController?.childViewControllers.count ?? 0)个控制器"
    }
   
}
